#include<stdio.h>
#include<fcntl.h>
#include<termios.h>
#include<unistd.h>
#include<errno.h>

int main()
{
    int fd;
     fd = open("/dev/ttyUSB0", O_RDWR | O_TRUNC);
     if (fd == -1)
     printf("error");
     else
     {
         printf("success\n");
     }

     char write0[] = "1" ;
     write(fd, write0, sizeof(write0));
     close(fd);
     return 0;
}